home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v10n08.arc / CDX.DOC < prev    next >
Text File  |  1991-04-05  |  2KB  |  45 lines

  1. CDX
  2.  
  3.  
  4. Michael Holmes and Bob Flanders                     April 30, 1991 (Utilities)
  5.  
  6.  
  7. Purpose:   Provides an alternative to the DOS CD command that eliminates the
  8. need to enter long path and directory names and that finds and changes to
  9. directories containing specified filenames.
  10.  
  11. Format:   CDX [/?] [/B] [/+] [/F filename] [d:]p1 p2 ..pn
  12.  
  13. Remarks:  Entered without any of the optional / switches, CDX searches one or
  14. more hard drives d: for a specified directory p1. If found, the full path is
  15. displayed with a ? prompt and is selected by typing Y; typing N continues the
  16. search for another qualifying directory. If the d: parameter is omitted, only
  17. the current drive is checked; *: searches all hard drives, starting with C:. 
  18. Multiple drives listed as d:, including floppies (if desired) are searched in
  19. named order,  e.g. DCAB:. If d: is preceded by a minus sign (-) the drive(s)
  20. listed are excluded rather than included.
  21.  
  22.         The p1 target directory name can be truncated to as little as their
  23. initial letter. To prevent having to bypass an inconvenient number of 
  24. qualifying directories at the ? prompt, multiple values of p, each separated 
  25. by a space, can be used to construct an abbreviated path, which need not 
  26. include all steps. If the initial p1 begins with a backslash (\) the search
  27.  will be made from the root rather than the current directory.
  28.  
  29.         Any optional / switches used on the CDX command line must precede 
  30. the d:p1 parameters. Using the /F switch limits qualifying directories to 
  31. those containing a user-specified filename. The filename supports the * and ? 
  32. DOS wildcards, and if all the subdirectories of d: are to be searched, p1 may 
  33. be omitted or replaced by an asterisk (*). Supplying the /B switch
  34. automatically selects the first qualifying directory, eliminating the user-
  35. prompt. The /+ switch includes floppy disk drives A: and B: in the search, and
  36. the /? switch brings up a syntax help screen.
  37.  
  38.         In keeping with DOS conventions, entering CDX with no parameters or
  39. with a single dot parameter simply displays and the current directory. CDX ..
  40. changes to the parent directory, and CDX \ changes to the root directory of
  41. the current drive. Note: to change to the root directory of a different drive
  42. using CDX requires using a single space as the value of p1 immediately
  43. following the backslash. Thus, CDX /B E:\ will change to the E: root directory
  44. without an intervening prompt.
  45.